const mongoose = require("mongoose");

// 创建账单的结构对象
let OrderSchema = new mongoose.Schema({
    text: {
        type: String,
        required: true
    },
    createTime: String,
    type: Number,
    moneyValue: Number,
    description: String
})

// 创建模型对象
let OrderModel = mongoose.model("orders", OrderSchema)

// 暴露账单模型对象
module.exports = OrderModel
